/**
 * Copyright &copy; 2012-2016 <a href="https://github.com/thinkgem/jeesite">JeeSite</a> All rights reserved.
 */
package com.thinkgem.jeesite.modules.croptype.entity;

import org.hibernate.validator.constraints.Length;

import com.thinkgem.jeesite.common.persistence.DataEntity;

/**
 * 作物类型管理Entity
 * @author 王虎
 * @version 2017-03-10
 */
public class TpCropType extends DataEntity<TpCropType> {
	
	private static final long serialVersionUID = 1L;
	private String cropId;		// 作物表id,关联作物表
	private String typeName;		// 类型名称
	
	public TpCropType() {
		super();
	}

	public TpCropType(String id){
		super(id);
	}

	@Length(min=0, max=64, message="作物表id,关联作物表长度必须介于 0 和 64 之间")
	public String getCropId() {
		return cropId;
	}

	public void setCropId(String cropId) {
		this.cropId = cropId;
	}
	
	@Length(min=0, max=20, message="类型名称长度必须介于 0 和 20 之间")
	public String getTypeName() {
		return typeName;
	}

	public void setTypeName(String typeName) {
		this.typeName = typeName;
	}
	
}